<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
  <title>File: Rakefile [RDoc Documentation]</title>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  <meta http-equiv="Content-Script-Type" content="text/javascript" />
  <link rel="stylesheet" href=".././rdoc-style.css" type="text/css" media="screen" />
  <script type="text/javascript">
  // <![CDATA[

  function popupCode( url ) {
    window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
  }

  function toggleCode( id ) {
    if ( document.getElementById )
      elem = document.getElementById( id );
    else if ( document.all )
      elem = eval( "document.all." + id );
    else
      return false;

    elemStyle = elem.style;

    if ( elemStyle.display != "block" ) {
      elemStyle.display = "block"
    } else {
      elemStyle.display = "none"
    }

    return true;
  }

  // Make codeblocks hidden by default
  document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }<\/style>" )

  // ]]>
  </script>

</head>
<body>


  <div id="fileHeader">
    <h1>Rakefile</h1>
    <table class="header-table">
    <tr class="top-aligned-row">
      <td><strong>Path:</strong></td>
      <td>Rakefile

      </td>
    </tr>
    <tr class="top-aligned-row">
      <td><strong>Last Update:</strong></td>
      <td>2010-01-19 22:40:43 -0600</td>
    </tr>
    </table>
  </div>
  <!-- banner header -->

  <div id="bodyContent">

  <div id="contextContent">

    <div id="description">
      <p>
# # To change this template, choose Tools | Templates # and open the
template in the editor.
</p>
<p>
require &#8216;rubygems&#8217; require &#8216;rake&#8217; require
&#8216;rake/clean&#8217; require &#8216;rake/gempackagetask&#8217; require
&#8216;rake/rdoctask&#8217; require &#8216;rake/testtask&#8216;
</p>
<p>
spec = Gem::Specification.new do |s|
</p>
<pre>
  s.name = 'sleepmirror'
  s.version = '0.0.1'
  s.has_rdoc = true
  s.extra_rdoc_files = ['README', 'LICENSE']
  s.summary = 'A game-like vision of your sleep.'
  s.description = s.summary
  s.author = ''
  s.email = ''
  # s.executables = ['your_executable_here']
  s.files = %w(LICENSE README Rakefile) + Dir.glob(&quot;{bin,lib,spec}/**/*&quot;)
  s.require_path = &quot;lib&quot;
  s.bindir = &quot;bin&quot;
</pre>
<p>
end
</p>
<p>
Rake::GemPackageTask.new(spec) do |p|
</p>
<pre>
  p.gem_spec = spec
  p.need_tar = true
  p.need_zip = true
</pre>
<p>
end
</p>
<p>
Rake::RDocTask.new do |rdoc|
</p>
<pre>
  files =['README', 'LICENSE', 'lib/**/*.rb']
  rdoc.rdoc_files.add(files)
  rdoc.main = &quot;README&quot; # page to start on
  rdoc.title = &quot;SleepMirror Docs&quot;
  rdoc.rdoc_dir = 'doc/rdoc' # rdoc output folder
  rdoc.options &lt;&lt; '--line-numbers'
</pre>
<p>
end
</p>
<p>
Rake::TestTask.new do |t|
</p>
<pre>
  t.test_files = FileList['test/**/*.rb']
</pre>
<p>
end
</p>

    </div>

   </div>


  </div>

    <!-- if includes -->

    <div id="section">




    <!-- if method_list -->




  </div>

<div id="validator-badges">
  <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
</div>

</body>
</html>
